package com.hrma.dao;

import com.github.pagehelper.Page;
import com.hrma.entity.LeaveRecord;
import com.hrma.entity.LeaveRecordDTO;
import com.hrma.entity.LeaveRecordVO;
import com.hrma.entity.SelectResult;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface LeaveRecordMapper {
    void add(LeaveRecordVO data);

    List<SelectResult> select();

    Page<LeaveRecordVO> getList(LeaveRecordDTO data);

    boolean exist(@Param("id") Integer id);
}
